package com.mybatis.jpa.statement.builder;

import com.mybatis.jpa.constant.ResultMapConstants;
import com.mybatis.jpa.meta.PersistentMeta;
import com.mybatis.jpa.statement.MybatisStatementAdapter;
import com.mybatis.jpa.statement.SqlAssistant;
import org.apache.ibatis.executor.keygen.NoKeyGenerator;
import org.apache.ibatis.mapping.SqlCommandType;

import java.lang.reflect.Method;

/**
 * 根据bean + 扩展sql 查询多条
 * @author wanglei
 * @date 2020 -02-06 11:06:32
 */
public class SelectAdvanceBuilder extends SelectPageForOrderByBuilder{

	@Override
	public String extWhere() {
		StringBuilder extWhere = new StringBuilder();
		extWhere.append("<if test=\"extWhereSql != null and extWhereSql != '' \"> ");
		extWhere.append("${extWhereSql}");
		extWhere.append("</if> ");
		return extWhere.toString();
	}
}
